home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Diamond Collection
/
The Diamond Collection (Software Vault)(Digital Impact).ISO
/
cdr02
/
ams520.zip
/
UPDATE.BAT
< prev
Wrap
DOS Batch File
|
1995-03-06
|
4KB
|
170 lines
@echo off
if A==%1 goto doit
if B==%1 goto doit
if C==%1 goto doit
if D==%1 goto doit
if E==%1 goto doit
if F==%1 goto doit
if G==%1 goto doit
if H==%1 goto doit
if I==%1 goto doit
if J==%1 goto doit
if K==%1 goto doit
if L==%1 goto doit
if M==%1 goto doit
if N==%1 goto doit
if O==%1 goto doit
if P==%1 goto doit
if Q==%1 goto doit
if R==%1 goto doit
if S==%1 goto doit
if T==%1 goto doit
if U==%1 goto doit
if V==%1 goto doit
if W==%1 goto doit
if X==%1 goto doit
if Y==%1 goto doit
if Z==%1 goto doit
if a==%1 goto doit
if b==%1 goto doit
if c==%1 goto doit
if d==%1 goto doit
if e==%1 goto doit
if g==%1 goto doit
if h==%1 goto doit
if i==%1 goto doit
if j==%1 goto doit
if k==%1 goto doit
if l==%1 goto doit
if m==%1 goto doit
if n==%1 goto doit
if o==%1 goto doit
if p==%1 goto doit
if q==%1 goto doit
if r==%1 goto doit
if s==%1 goto doit
if t==%1 goto doit
if u==%1 goto doit
if v==%1 goto doit
if w==%1 goto doit
if x==%1 goto doit
if y==%1 goto doit
if z==%1 goto doit
goto goof1
:doit
if exist %1:\ams\ams.exe goto start
if exist %1:\ams\amss.exe goto start
goto goof2
:start
cls
ECHO.
ECHO ACTION MANAGEMENT SYSTEM INSTALLATION
ECHO.
ECHO.
ECHO Welcome to the Action Management System!
ECHO.
ECHO This batch file will update the Action Management System. It will install
ECHO the updated files in directory, \AMS, on disk drive %1 which you have
ECHO designated. It will not damage any data you have entered with an earlier
ECHO version of this program. After this batch file has been completed
ECHO successfully you may start AMS as you normally would and any necessary
ECHO changes will be made automatically.
ECHO.
ECHO For this version of AMS you must have the FILES constant in the set to at
ECHO at lease 45. If it is not set to at least 45 terminate the update now,
ECHO revise the CONFIG.SYS file, reboot your system and again start this
ECHO update process.
ECHO.
ECHO If you want to terminate the update process press (Ctrl) and (C) to
ECHO exit to DOS otherwise press any other key to continue.
ECHO.
ECHO.
PAUSE
CLS
ECHO.
ECHO.
ECHO THE ACTION MANAGEMENT SYSTEM IS BEING UPDATED
@ REM ---Update routine
erase %1:\ams\amsdemo?.dbf
erase %1:\ams\amsi????.ntx
if not exist %1:\ams\amszap.bat goto zz
erase %1:\ams\amszap.bat
:zz
if not exist %1:\ams\ams.exe goto ss
erase %1:\ams\ams.exe
:ss
if exist %1:\ams\amsfpppp.dbf goto pp
copy amsp.dbf %1:\ams\amsfpppp.dbf
copy amsw.dbf %1:\ams\amsfppp1.dbf
:pp
if exist %1:\ams\amsftttt.dbf goto tt
copy amst.dbf %1:\ams\amsftttt.dbf
:tt
copy amss.exe %1:\ams
copy amsdem??.* %1:\ams
copy amsfhelp.dbf %1:\ams
copy ams.ico %1:\ams
copy ams.pif %1:\ams
copy ams.bat %1:\
copy amsf.dbf %1:\ams\amsf.dbf
copy amsp.dbf %1:\ams\amsp.dbf
copy amsw.dbf %1:\ams\amsw.dbf
if exist %1:\ams\amsfw001.dbf goto skipdic
if exist %1:\ams\stdfw001.dbf goto dicams
copy stdfw00?.dbf %1:\ams\amsfw00?.dbf
goto dic
:dicams
ren %1:\ams\stdfw00?.dbf amsfw00?.dbf
:dic
:skipdic
cd \
cls
ECHO.
ECHO.
ECHO THE ACTION MANAGEMENT SYSTEM HAS BEEN SUCCESSFULLY UPDATED
goto end
@ REM ---Goof 1 - No Target drive designated
:goof1
cls
ECHO.
ECHO ACTION MANAGEMENT SYSTEM INSTALLATION
ECHO.
ECHO.
ECHO.
ECHO This batch file updates the Action Management System. To start the
ECHO update process you must designate a drive into which AMS will be
ECHO updated. This is accomplished by entering the update command followed
ECHO by the letter designating the drive on which AMS is installed in the
ECHO \AMS directory.
ECHO.
ECHO To update AMS on drive C and the enter the following command at the DOS
ECHO prompt:
ECHO.
ECHO UPDATE C
ECHO.
ECHO.
PAUSE
CLS
goto end
@ REM ---Goof 2 - AMS not already installed on target
:goof2
cls
ECHO.
ECHO ACTION MANAGEMENT SYSTEM INSTALLATION
ECHO.
ECHO.
ECHO.
ECHO Disk drive %1 was designated as the drive onto which AMS is to be
ECHO updated however AMS can not found in the \AMS directory on the %1 drive.
ECHO If AMS is being installed for the first time use the Install command to
ECHO install AMS on the C drive for example by entering the following
ECHO command:
ECHO.
ECHO INSTALL C
ECHO.
ECHO.
PAUSE
goto end
:end
@echo on